import { ILoadMapTypeAll } from '@/common';
import { ManageCommonAPI } from '@/pages/type';
import { getLevelZeroJson } from '@/utils';

const getSearchList = (loadMdicMapList: Record<string, any>): ManageCommonAPI.ISearchList => {
  return [
    {
      name: 'useFormName',
      placeholder: '申请',
      label: '申请',
      componentType: 'DeptAndUser',
      dataSource: getLevelZeroJson() ?? [],
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: false,
      formOrgType: {
        COMP: 'useCompanyID',
        DEPT: 'useDepartmentID',
        POS: 'usePositionID',
        USER: 'userID',
      },
    },
  ];
};

export { getSearchList };
